<!--  -->
<template>
<!-- el-row 表示行
       el-col  表示列
       24列布局模式
  -->
<!-- <el-row>
  <el-col :span="24">
    <div class="grid-content bg-purple-dark">
      </div></el-col>
</el-row> -->

<!--栅格间隔 ：gutter -->
<!-- <el-row :gutter="20">
  <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
  <el-col :span="6"><div class="grid-content bg-purple-light"></div></el-col>
  <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
  <el-col :span="6"><div class="grid-content bg-purple-light"></div></el-col>
</el-row> -->

<!-- offet 分栏偏移 -->
<!-- <el-row :gutter="20">
   <el-col :span="12" :offset="6"><div class="grid-content bg-purple"></div></el-col>
   <el-col :span="6" ><div class="grid-content bg-purple-light"></div></el-col>
</el-row> -->


<!-- 对齐方式
     利用弹性盒
     justify: start, center, end, space-between, space-around
 -->

<!-- <el-row type="flex" class="row-bg" justify="space-between" align="bottom" >
  <el-col :span="6"><div class="grid-content bg-purple">1</div></el-col>
  <el-col :span="6"><div class="grid-content bg-purple-light">2</div></el-col>
  <el-col :span="6"><div class="grid-content bg-purple">3</div></el-col>
    <el-col :span="6"><div class="grid-content bg-purple">4</div></el-col>
</el-row> -->

<!-- 响应式布局

 -->
<el-row :gutter="10">
  <el-col :xs="8" :sm="6" :md="4" :lg="6" :xl="4"><div class="grid-content bg-purple"></div></el-col>
  <el-col :xs="4" :sm="6" :md="8" :lg="6" :xl="8"><div class="grid-content bg-purple-light"></div></el-col>
  <el-col :xs="4" :sm="6" :md="8" :lg="6" :xl="8"><div class="grid-content bg-purple"></div></el-col>
  <el-col :xs="8" :sm="6" :md="4" :lg="6" :xl="4"><div class="grid-content bg-purple-light"></div></el-col>
</el-row>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';

export default {
//import引入的组件需要注入到对象中才能使用
components: {},
data() {
//这里存放数据
return {

};
},
//监听属性 类似于data概念
computed: {},
//监控data中的数据变化
watch: {},
//方法集合
methods: {

},
//生命周期 - 创建完成（可以访问当前this实例）
created() {

},
//生命周期 - 挂载完成（可以访问DOM元素）
mounted() {

},
beforeCreate() {}, //生命周期 - 创建之前
beforeMount() {}, //生命周期 - 挂载之前
beforeUpdate() {}, //生命周期 - 更新之前
updated() {}, //生命周期 - 更新之后
beforeDestroy() {}, //生命周期 - 销毁之前
destroyed() {}, //生命周期 - 销毁完成
activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
}
</script>
<style  scoped>
  .grid-content {
    text-align: center;
    font-size: 30px;
    line-height: 100px;
    /* width: 100px;
    height: 100px; */
    border-radius: 4px;
    min-height: 36px;

  }
  .bg-purple{
    background:lightgreen;
  }
  .bg-purple-light{
background: slateblue;
  }
</style>